/*
* @Author: An
* @Date:   2017-07-17 14:52:02
* @Last Modified by:   An
* @Last Modified time: 2017-07-17 15:14:19
*/

'use strict';
var _xj = require('util/xj.js');

var _payment = {
	// 获取商品列表
	getPaymentInfo : function(orderNumber, resolve, reject) {
		_xj.request({
			url 	: _xj.getServerUrl('/order/pay.do'),
			method	: 'POST',
			data 	: {
				orderNo : orderNumber
			},
			success : resolve,
			error 	: reject
		});
	},
	// 获取订单状态
	getPaymentStatus : function(orderNumber, resolve, reject) {
		_xj.request({
			url 	: _xj.getServerUrl('/order/query_order_pay_status.do'),
			method	: 'POST',
			data 	: {
				orderNo : orderNumber
			},
			success : resolve,
			error 	: reject
		});
	}
}
module.exports = _payment;